package il.ac.technion.wiki.impl.tests;

//import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import java.util.Date;

import il.ac.technion.wiki.impl.WikiEngine;
import il.ac.technion.wiki.impl.WikiHTMLPage;
import il.ac.technion.wiki.impl.WikiStorageEngine;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class generalTests {

 WikiEngine wiki;

 public generalTests() {
   
 }

 @Before
 public void startingWork() {
	 // Creating the Engine
	 wiki = new WikiEngine(new WikiStorageEngine());
 }

 @After
 public void finishingWork() {
   // finish
 }

 @Test
 public void creationTest() {
   assertTrue(wiki.addPage(new WikiHTMLPage("Test Page","Evgeny","English", new Date(), "Hello world!")));
   assertTrue(wiki.addPage(new WikiHTMLPage("New-York","Evgeny","English", new Date(), "New-York state is located in the Northeastern region of the US. New-York is the nation's third most populous state.")));   
   assertTrue(wiki.addPage(new WikiHTMLPage("David Smith","Unonimous","English", new Date(), "David arrived to New-York from Vermont.")));
 }

 @Test
 public void usageTest1() {
 
 }

/* @Test(expected = EmptyStackException.class)
 public void usageTest2() {
   stack = new Stack<Integer>();
   stack.peek();
 }
 */

 @Test
 public void usageTest3() {
   //assertTrue( );
 }

 @Test
 public void usageTest4() {
	 //
 }
}